package org.edu.modules.sbzc.place.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import java.sql.Date;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-场地归还表
 */
@TableName("ve_sbzc_cd_revert")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="场地归还表对象", description="ve_sbzc_cd_revert")
public class VeSbzcCdRevert extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "场地ID")
    private Integer cdId;

    @TableField
    @ApiModelProperty(value = "所属部门")
    @Length(max = 32)
    private String applyDeptId;

    @TableField
    @ApiModelProperty(value = "场地名称")
    @Length(max = 255)
    private String applyDeptName;

    @TableField
    @ApiModelProperty(value = "归还人")
    @Length(max = 32)
    private String revertUserId;

    @TableField
    @ApiModelProperty(value = "接收人")
    @Length(max = 50)
    private String revertUserName;

    @TableField
    @ApiModelProperty(value = "批准人")
    @Length(max = 32)
    private String checkUserId;

    @TableField
    @ApiModelProperty(value = "批准人")
    @Length(max = 255)
    private String checkUserName;

    @TableField
    @ApiModelProperty(value = "归还时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date revertTime;

    @TableField
    @ApiModelProperty(value = "备注")
    @Length(max = 500)
    private String remark;
}
